package com.example.demo.alarm.dao;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 报警列表实体类
 */
public class AlarmList implements Serializable {

    //主键
    private Integer id;
    //报警编号，报警策略id
    private Integer tacticsId;
    //报警等级
    private String tacticsLevel;
    //报警内容
    private String tacticsDetails;
    //空间id
    private Integer spaceId;
    //报警设备id
    private Integer deviceId;
    //传感器id
    private Integer sensorId;
    //报警值
    private String alarmValue;
    //报警状态
    private String tacticsState;
    //推送时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date dataTime;
    //报警时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date tacticsTime;

    //空间名称
    private String spaceName;
    //设备名称
    private String deviceName;
    //传感器名称
    private String sensorName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTacticsId() {
        return tacticsId;
    }

    public void setTacticsId(Integer tacticsId) {
        this.tacticsId = tacticsId;
    }

    public String getTacticsLevel() {
        return tacticsLevel;
    }

    public void setTacticsLevel(String tacticsLevel) {
        this.tacticsLevel = tacticsLevel;
    }

    public String getTacticsDetails() {
        return tacticsDetails;
    }

    public void setTacticsDetails(String tacticsDetails) {
        this.tacticsDetails = tacticsDetails;
    }

    public Integer getSpaceId() {
        return spaceId;
    }

    public void setSpaceId(Integer spaceId) {
        this.spaceId = spaceId;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getSensorId() {
        return sensorId;
    }

    public void setSensorId(Integer sensorId) {
        this.sensorId = sensorId;
    }

    public String getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(String alarmValue) {
        this.alarmValue = alarmValue;
    }

    public String getTacticsState() {
        return tacticsState;
    }

    public void setTacticsState(String tacticsState) {
        this.tacticsState = tacticsState;
    }

    public Date getDataTime() {
        return dataTime;
    }

    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    public Date getTacticsTime() {
        return tacticsTime;
    }

    public void setTacticsTime(Date tacticsTime) {
        this.tacticsTime = tacticsTime;
    }

    public String getSpaceName() {
        return spaceName;
    }

    public void setSpaceName(String spaceName) {
        this.spaceName = spaceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getSensorName() {
        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName;
    }
}
